package androidweb

import (
	"androidweb/controllers"
	_ "androidweb/routers"

	"github.com/astaxie/beego"
)

func Run(dir string) {
	beego.Router("/", &controllers.MainController{})
	beego.LoadAppConfig("ini", dir+"/conf/app.conf")
	beego.SetStaticPath("/static", dir+"/static")
	beego.BConfig.WebConfig.ViewsPath = dir + "/views"
	beego.Run()
}
